<template>
	<view class="ordate">
		<u-navbar :titleStyle="{fontWeight:'bold'}"  title="支付结果" />
		<view class="ordate-content">
			<view class="ordate-card">
				<view class="ordate-icon">
					<u-icon :name="type!='fail'?'checkmark-circle-fill':'error-circle-fill'" size="50" :color="type!='fail'?'#FFCF4F':'#9a9a9a'"></u-icon>
				</view>
				<view class="ordate-text" :class="type=='fail'?'show':''">{{type=='fail'?'支付失败':'支付成功'}}</view>
			</view>
		</view>
		<statusbar>
			<view class="confimorder-botem">
				<button class="cu-btn confimorder-button" @click="myOrderChang">
					<view class="confimorder-pacie">我的订单</view>
					<view class="confimorder-icon">
						<u-icon name="arrow-right" size="15" color="#FFF"></u-icon>
					</view>
				</button>
			</view>
		</statusbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:''
			};
		},
		onLoad(e){
			this.type = e.type
		},
		methods:{
			myOrderChang(){
				uni.redirectTo({
					url:'/subpkg/order/order'
				})
			}
		}
	}
</script>

<style lang="scss">
page{
	background: #F5F5F5;
}
.confimorder-icon{
	margin-left:15rpx;
}
.ordate-content{
	padding: 20px;
	.ordate-card{
		width: 100%;
		padding: 20px;
		border-radius: 5px;
		background: #FFF;
		min-height: 230px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		.ordate-text{
			font-size: 45rpx;
			font-weight: bold;
			color: #FFCF4F;
			margin-top: 20rpx;
			letter-spacing: 3px;
			&.show{
				color: #9a9a9a;
			}
		}
	}
}
	.confimorder-botem{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		.confimorder-button{
			min-width: 350rpx;
			height: 80rpx;
			background: #FFCF4F;
			color: #333;
			font-size: 30rpx;
			font-weight: bold;
			padding: 0;
			margin: 0;
			border-radius: 24px;
		}
	}
</style>
